/**
 * The Player class represents the settler that is directly controlled by the user.
 * 
 * @author CS 2340 Team 29 - It's a Trap
 * @version 1.0 10/10/11
 */
public class Player extends Settler{
	public Profession profession;
	
	/**
	 * Constructor for the player class
	 * 
	 * @param ration The desired rationing for the player
	 * @param name The desired name for the player
	 * @param profession The profession for the player, which provides bonuses
	 */
	public Player(String ration, String name, Profession profession){
		super(ration, name);
		this.profession = profession;
	}
	
	/**
	 * Sets the player's profession
	 * 
	 * @param p The player's desired profession
	 */
	public void setProfession(Profession p){
		this.profession = p;
	}
	
	/**
	 * Gets the player's profession
	 * 
	 * @return The player's profession
	 */
	public Profession getProfession(){
		return profession;
	}
}
